<?php
class erpapi_logistics_matrix_jdalpha_config extends erpapi_logistics_matrix_config{

    public function get_query_params($method, $params){
        $jdalpha = explode('|||',$this->__channelObj->channel['shop_id']);
        $shop = app::get('ome')->model('shop')->dump(array('shop_id'=> $jdalpha[1]), 'node_type,node_id');
        $query_params = array(
            'cp_code' => $this->__channelObj->channel['logistics_code'],
            'to_node_id' => $shop['node_id'],
            'node_type' => $shop['node_type'],
        );
        $pqp = parent::get_query_params($method, $params);
        $query_params = array_merge($pqp, $query_params);
        return $query_params;
    }
}